import baseUrl from './baseUrl'
console.log(baseUrl);
console.log(process.env.NODE_ENV,'1111111111111111111111111111');
let http =function(options){
	return new Promise((reslove,reject)=>{
		uni.request({
			url:baseUrl+"/api"+options.url,
			method:options.method || "GET",
			data:options.data || {},
			header:options.header || {"content-type":"application/json"},
			success(res) {
				reslove(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
	
}
export default http
